//
//  CSNateOAuthResult.h
//  CairnStory
//  www.cairnstory.com
//
//  Created by saturna on 11. 3. 22..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

// oauth parameter key
extern NSString* const kNateKeyOAuthConsumerKey;
extern NSString* const kNateKeyOAuthConsumerSecret;

extern NSString* const kNateKeyOAuthVersion;
extern NSString* const kNateKeyOAuthCallback;
extern NSString* const kNateKeyOAuthSignatureMethod;

extern NSString* const kNateKeyOAuthToken;
extern NSString* const kNateKeyOAuthTokenSecret;
extern NSString* const kNateKeyOAuthCallbackConfirmed;
extern NSString* const kNateKeyOAuthVerifier;

extern NSString* const kNateKeyOAuthNonce;
extern NSString* const kNateKeyOAuthTimestamp;
extern NSString* const kNateKeyOAuthSignature;


// oauth parameter value
//extern NSString* const kNateOAuthVersion;
//extern NSString* const kNateOAuthSignatureMethod;



#pragma mark -
#pragma mark CSNateOAuthResult

@interface CSNateOAuthResult : NSObject
{
	//BOOL m_isAuthorized;	// result
	NSDictionary* m_oauthParams;
	NSMutableDictionary* m_profile;
}



+ (NSString*)generateOAuthNonce;

- (id)initWithDictionary:(NSDictionary*)params;
- (NSString*)oauthParamForKey:(NSString*)paramKey;


- (BOOL)isAuthorized;

- (BOOL)hasNateOnProfile;
- (NSString*)nateOnProfileForKey:(NSString*)key;
- (void)setNateOnProfile:(NSString*)profile forKey:(NSString*)key;

- (BOOL)hasCLogProfile;
- (NSString*)cLogProfileForKey:(NSString*)key;
- (void)setCLogProfile:(NSString*)profile forKey:(NSString*)key;

@end


